
var _charts = require('./chart')

var CHARTS = function () { }

//形成折线图
CHARTS.shapeLine = function (params) {
    new _charts({
        canvasId: params.canvas_id,
        type: 'line',
        categories: params.xcate,
        series: params.data,
        yAxisSplit: params.yAxisSplit,
        yAxis: {
            title: params.ytitle,
            format: function (val) {
                return val.toFixed(2);
            },
            min: params.min,
        },
        width: params.width,
        height: params.height
    });
}

module.exports = CHARTS;